import java.util.Scanner;

public class l4 {
    public static void main(String[] args){
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入网购金额：");
        double a = reader.nextDouble();
        System.out.println("请输入客户与发货点之间的距离：");
        double b = reader.nextDouble();
        if (0<b && b<=10){
            System.out.println("总金额为："+(b+10));
        }
        else if (11<=b && b<=50){
            System.out.println("总金额为："+(b+50));
        }
        else if (51<=b &&b<=100){
            System.out.println("总金额为："+(b+100));
        }else {
            System.out.println("总金额为："+(b+200));
        }
    }
}
